package com.howard.core;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

import com.howard.core.cache.MemCachedInit;

/**
 * 初始化memcached container
 * 支持web容器
 *
 * @author <a href="mailto:howard.he0329@gmail.com">Howard He</a>
 *
 */
@WebListener("auto configuration memcached")
public class MemCachedLoaderListener implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent event) {
	}

	@Override
	public void contextInitialized(ServletContextEvent event) {
		MemCachedInit.doInit();
	}

}
